package com.jy.api.vo.clerk;

import com.jy.api.domain.OrderItem;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Created by lihu on 2017/8/25.
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommissionVo {

    private double lastMonth = 0;

    private double total = 0;

    private int totalOrderSize = 0;

    private int target;

    private int sameMonthMemberCount = 0;

    private int lastMonthMemberCount = 0;

    private double lastDayAmount=0;

    private List<Order> orders = new ArrayList<Order>();

    public CommissionVo(double total, int totalOrderSize) {
        this.total = total;
        this.totalOrderSize = totalOrderSize;
    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Order {

        private String id;

        private String code;

        private double commission = 0;

        private Date createTime;

        private List<OrderItem> items = new ArrayList<OrderItem>();


    }
}
